package com.ynny.practice5_2;

import org.springframework.stereotype.Component;

@Component(value = "user")
public class User {
    private String id;//数据库id
    private String number;//学号
    private String password;//密码
    private String identity;//身份

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    @Override
    public String toString() {
        return "用户" +
                "id： " + id + '\n' +
                "学号：" + number + '\n' +
                "密码：" + password + '\n' +
                "身份：" + identity + '\n'
                ;
    }
}
